package com.jrzh.mvc.model.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jrzh.framework.base.model.GeneralModel;

@Entity
@Table(name = "sys_files")
public class FileModel extends GeneralModel {
    
    /**
     * 文件名称
     */
    @Column(name = "_name")
    @NotNull(message="文件名称不能为空")
    private String name;
    /**
     * 文件类型
     */
    @Column(name = "_type")
    @NotNull(message="文件类型不能为空")
    private String type;
    /**
     * 文件路径
     */
    @Column(name = "_url")
    @NotNull(message="文件路径不能为空")
    private String url;
    /**
     * 所属实体
     */
    @Column(name = "_model")
    private String model;
    /**
     * 关联实体ID
     */
    @Column(name = "_form_id")
    private String formId;
    /**
     * 备注
     */
    @Column(name = "_remark")
    private String remark;
    /**
     * 文件编码规则
     */
    @Column(name = "_key")
    private String key;
    /**
     * 关联用户Id
     */
    @Column(name = "_member_id")
    private String memberId;
    public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public void setName(String name) {
        this.name = name;
    }
    
    public String getName() {
        return this.name;
    }
    public void setType(String type) {
        this.type = type;
    }
    
    public String getType() {
        return this.type;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    
    public String getUrl() {
        return this.url;
    }
    public void setModel(String model) {
        this.model = model;
    }
    
    public String getModel() {
        return this.model;
    }
    public void setFormId(String formId) {
        this.formId = formId;
    }
    
    public String getFormId() {
        return this.formId;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    public String getRemark() {
        return this.remark;
    }

}